package com.py.credit.entity;

import java.io.Serializable;
import java.util.List;

/**
 * 动态sql实体类
 *
 * @author YaoS
 * @date 19/4/29 17:05
 */
public class DynamicSqlEntity implements Serializable {

    private static final long serialVersionUID = -2790531558949687920L;
    /**
     * 返回主键
     */
    private Integer id;
    /**
     * 动态sql
     */
    private String sql;

    private String tableId;
    private String key;
    private List<Object> list;

    public String getTableId() {
        return tableId;
    }

    public void setTableId(String tableId) {
        this.tableId = tableId;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public List<Object> getList() {
        return list;
    }

    public void setList(List<Object> list) {
        this.list = list;
    }


    public DynamicSqlEntity() {
    }

    public DynamicSqlEntity(String tableId, String key, List<Object> list) {
        this.tableId = tableId;
        this.key = key;
        this.list = list;
    }

    /**
     * @param sql
     */
    public DynamicSqlEntity(String sql) {
        this.sql = sql;
    }

    /**
     * @return the id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return the sql
     */
    public String getSql() {
        return sql;
    }

    /**
     * @param sql the sql to set
     */
    public void setSql(String sql) {
        this.sql = sql;
    }

    @Override
    public String toString() {
        return "DynamicSqlEntity [id=" + id + ", sql=" + sql + "]";
    }
}
